let server = process.env.NODE_ENV == 'production' ? "/personalmrg" : "/personalmrg"
let oauth = process.env.NODE_ENV == 'production' ? "/kkoauth" : "/kkoauthdev"


let appSettion = {
    projectName: 'psn',
    url: process.env.VUE_APP_BASE_API,
    server: server,
}

if (window.dynamicSetting) {
    appSettion = Object.assign(appSettion, window.dynamicSetting)
}
let notUrlKey = ["projectName"]
for (let prop in appSettion) {
    if (notUrlKey.indexOf(prop) && appSettion[prop] && typeof (appSettion[prop]) == 'string' && !appSettion[prop].toLowerCase().startsWith("http"))
        appSettion[prop] = appSettion.url + appSettion[prop];
}

export default appSettion;